<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Banner/index')}">轮播图列表</a></li>
			<li class="active"><a href="{:url('Banner/add')}">添加轮播图</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Banner/addpost')}">
			<div class="form-group">
				<label for="image" class="col-sm-2 control-label"><span class="form-required">*</span>图像</label>
				<input id="photo-1" type="hidden" name="image" >
				<input id="photo-1-name" type="text" readonly disabled title="图片名称">
				<img id="photo-1-preview" style="width: 10%">
				<a href="javascript:uploadOneImage('图片上传','#photo-1');">上传</a>
			</div>
			<div class="form-group">
				<label for="url" class="col-sm-2 control-label"><span class="form-required">*</span>跳转链接</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="url" name="url">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="__token__" value="{:token()}" />
					<button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
